package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "bu_id", type = IdType.AUTO)
    private Integer buId;

    /**
     * 店铺名
     */
    private String buName;

    /**
     * 店铺联系电话
     */
    private String buPhone;

    /**
     * 商铺地址
     */
    private String buAddress;

    /**
     * 营业执照照片路径
     */
    private String buLicense;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date buDueDate;

    /**
     * 软件状态
     */
    private Integer buState;

    /**
     * 店铺收益
     */
    private Double buProfit;

    /**
     * 店铺老板
     */
    private Integer buBoss;

    //备注
    private String buIntroduce;
    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date buRegisterTime;
    /**
     * 门店微信
     */
    private String buWeChat;
    //邮箱
    private String buEmail;

    /**
     * 该商家下的所有 热门菜品信息——可能优先选择五条
     */
    @TableField(exist = false)
    private List<Menu> menu =  new ArrayList<>();

    //员工对象
    @TableField(exist = false)
    private Clerk clerk;


    @TableField(exist = false)
    private String imgBase64;


}
